package com.zhouk.cws.service;

import com.zhouk.cws.domain.User;
import com.zhouk.cws.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create By Zhouke on 2019/02/28
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User findUser(String username){
        return userMapper.findByUsername(username);
    }
}
